'use strict';

const path = require('path');

/**
 * egg-code-generator default config
 * @member Config#codeGenerator
 * @property {String} SOME_KEY - some description
 */

module.exports = appInfo => {
  const config = {};

  config.codeGenerator = {
    templateDir: path.join(__dirname, '..', 'template'),
    controllerDir: path.join(appInfo.baseDir, 'app/controller'),
    serviceDir: path.join(appInfo.baseDir, 'app/service'),
    routerDir: path.join(appInfo.baseDir, 'app/router'),
  };

  return config;
};
